<#setting number_format="#.##"/>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>房源签认表</title>
    <style>
        body {
            font-family: SimSun, Arial Unicode MS, Lucida Sans Unicode, Arial, verdana, arial, helvetica, sans-serif;
        }

        .printContent {
            margin: 0px;
            padding: 0px;
            font-size: 16px;
        }

        .printContent p {
            margin: 0px;
            padding: 0px;
            text-align: left;
            text-indent: 2em;
            line-height: 24px;
            width: 95%;
            margin-left: 20px;
        }

        .printContent .printTitle {
            text-indent: 0em;
            font-size: 24px;
            text-align: center;
            font-weight: bold;
            height: 36px;
        }

        .border {
            text-align: center;
            padding-left: 10px;
            padding-right: 10px;
            border-bottom: 1px solid #000000;
        }

        .borderBlock200 {
            text-align: center;
            width: 200px;
            display: inline-block;
            border-bottom: 1px solid #000000;
        }

        .table_border_top_hidden {
            border-top: hidden;
        }

        .table_border_bottom_hidden {
            border-bottom: hidden;
        }

        table {
            margin: auto;
            width: 95%;
            border-collapse: collapse;
            border-top: 2px solid #000000;
            border-left: 2px solid #000000;
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            -fs-table-paginate: paginate;
            border-spacing: 0;
        }

        th, td {
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            font-size: 16px;
            margin-left: 5px;
            height: 30px;
            page-break-inside: avoid;
            text-align: center;
        }

        .paddingLeft {
            padding-left: 300px;
        }

        @page {
            margin: 5mm 10mm 0mm 10mm;
        }

        .pageBreak {
            page-break-before: always
        }
    </style>
</head>
<body>
    <#if (contract.azType?? && contract.azType?contains("房屋安置"))>
            <div class="printContent">
                <#if contract.chooseHouseStatus ?? && contract.chooseHouseStatus ==1><p class="printTitle">【选房工作人员未设置签认状态，此单据仅供预览】</p></#if>
                <div class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}选房签认表</div>
                <div class="printTitle">（住宅、车位）</div>
                <p style="text-align: right;">单位：元、平方米</p>
                <table class="table_border_bottom_hidden">
                    <tr>
                        <td colspan="2" style="width: 25%">被征收人</td>
                        <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.name)}</td>
                        <td colspan="2">选房号</td>
                        <td colspan="2">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
                    </tr>
                    <tr>
                        <td colspan="2" style="width: 25%">身份证号码</td>
                        <td colspan="8" style="width: 25%">${strUtils.getNotNull(contract.idCard)}</td>
                    </tr>
                    <tr>
                        <td colspan="2">图编号</td>
                        <td colspan="2" style="word-wrap:break-word;">${strUtils.getNotNull(contract.drawingCode)}</td>
                        <td colspan="2" style="width: 25%">协议编号</td>
                        <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.contractCode)}</td>
                    </tr>
                </table>
                <table class="table_border_top_hidden table_border_bottom_hidden">
                    <tr>
                        <td colspan="4">一、安置房预定情况</td>
                    </tr>
                    <tr>
                        <td style="width: 25%;" colspan="2">房源类型</td>
                        <td style="width: 25%;" colspan="2">数量（套、个）</td>
                    </tr>

                    <#if (contract.house60YxNum ?? && contract.house60YxNum gt 0)>
                        <tr>
                            <td colspan="2">住宅（60型）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.house60YxNum)}</td>
                        </tr>
                    </#if>
                    <#if (contract.house80YxNum ?? && contract.house80YxNum gt 0)>
                        <tr>
                            <td colspan="2">住宅（80型）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.house80YxNum)}</td>
                        </tr>
                    </#if>
                    <#if (contract.house100YxNum ?? && contract.house100YxNum gt 0)>
                        <tr>
                            <td colspan="2">住宅（100型）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.house100YxNum)}</td>
                        </tr>
                    </#if>
                    <#if (contract.house120YxNum ?? && contract.house120YxNum gt 0)>
                        <tr>
                            <td colspan="2">住宅（120型）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.house120YxNum)}</td>
                        </tr>
                    </#if>
                    <#if (contract.house140YxNum ?? && contract.house140YxNum gt 0)>
                        <tr>
                            <td colspan="2">住宅（140型）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.house140YxNum)}</td>
                        </tr>
                    </#if>
                    <#if (contract.house160YxNum ?? && contract.house160YxNum gt 0)>
                        <tr>
                            <td colspan="2">住宅（160型）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.house160YxNum)}</td>
                        </tr>
                    </#if>
                    <#if (contract.house180YxNum ?? && contract.house180YxNum gt 0)>
                        <tr>
                            <td colspan="2">住宅（180型）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.house180YxNum)}</td>
                        </tr>
                    </#if>
                    <#if (contract.houseFsOneYxNum ?? && contract.houseFsOneYxNum gt 0)>
                        <tr>
                            <td colspan="2">住宅（复式Ⅰ型）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.houseFsOneYxNum)}</td>
                        </tr>
                    </#if>
                    <#if (contract.houseFsTwoYxNum ?? && contract.houseFsTwoYxNum gt 0)>
                        <tr>
                            <td colspan="2">住宅（复式Ⅱ型）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.houseFsTwoYxNum)}</td>
                        </tr>
                    </#if>

                    <#if (contract.carLotYxZhNum ?? && contract.carLotYxZhNum gt 0)>
                        <tr>
                            <td colspan="2">车位（置换）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.carLotYxZhNum)}</td>
                        </tr>
                    </#if>
                    <#if (contract.carLotYxYdNum ?? && contract.carLotYxYdNum gt 0)>
                        <tr>
                            <td colspan="2">车位（预定）</td>
                            <td colspan="2">${bigUtils.getNotNullStr(contract.carLotYxYdNum)}</td>
                        </tr>
                    </#if>
                </table>
                <table class="table_border_top_hidden table_border_bottom_hidden">
                    <tr>
                        <td colspan="4">二、选择产权调换面积</td>
                    </tr>
                    <tr>
                        <td colspan="2" rowspan="2">选择产权调换面积</td>
                        <td style="width: 25%;" colspan="2">${bigUtils.getNotNullStr(contract.ysHouseAreaTotal)}</td>
                    </tr>
                    <tr>
                        <td style="width: 25%;">其中:照顾购买面积</td>
                        <td style="width: 25%;">${bigUtils.getNotNull(contract.careBuyArea1)}</td>
                    </tr>
                </table>
                <table class="table_border_top_hidden">
                    <tr>
                        <td colspan="6">三、安置房状况明细</td>
                    </tr>
                    <tr>
                        <td width="8%">序号</td>
                        <td width="12%">房屋用途</td>
                        <td width="12%">房屋户型</td>
                        <td width="18%">所在小区</td>
                        <td width="25%">户号（编号）</td>
                        <td width="25%" style="font-size: 14px">建筑面积、置换车位面积</td>
                    </tr>
                    <#assign index = 0/>
                    <#assign zhAreaTotal = 0/>
                    <#if houseList??>
                        <#list houseList as house>
                            <#assign index =index+ 1/>
                            <#assign zhAreaTotal = bigUtils.getSum(zhAreaTotal,house.buildArea)/>
                            <tr>
                                <td>${intUtils.getNotNullStr(index)}</td>
                                <td>住宅</td>
                                <td>${strUtils.getNotNull(house.memo)}</td>
                                <td>${strUtils.getNotNull(house.azProject.projectName)}</td>
                                <td>${house.houseNumStr}</td>
                                <td>${bigUtils.getNotNullStr(house.buildArea)}</td>
                            </tr>
                        </#list>
                    </#if>
                    <#if carLotList??>
                        <#list carLotList as carLot>
                            <#assign index =index+ 1/>
                            <#assign zhAreaTotal = bigUtils.getSum(zhAreaTotal,carLot.hgArea)/>
                            <tr>
                                <td>${intUtils.getNotNullStr(index)}</td>
                                <td>车位</td>
                                <td>${(carLotTypeMap[carLot.carLotType?c].name)}</td>
                                <td>${strUtils.getNotNull(carLot.azProject.projectName)}</td>
                                <td>${carLot.houseNumStr}</td>
                                <#if carLotList?? && carLot.sfHg == 2>
                                <td>${bigUtils.getNotNullStr(carLot.hgArea)}</td>
                                <#else>
                                <td>${bigUtils.getNotNullStr(carLot.buildArea)}</td>
                                </#if>

                            </tr>
                        </#list>
                    </#if>
                    <tr>
                        <td style="width: 50%" colspan="4">安置面积合计（含置换车位面积）</td>
                        <td style="width: 50%" colspan="2">${bigUtils.getNotNullStr(zhAreaTotal)}</td>
                    </tr>
                </table>
                <p style="text-indent: 2em;font-size: 14px">被征收人声明：以上所选安置房是本人真实意思表示，本人予以确认。在此，本人郑重承诺：按照以上所确定的安置房在选房当日与征收人签订安置协议书，并按期缴清应补差价款；否则，征收人有权对所选安置房进行处置并取消本人选房号，本人同意并接受征收人在集中选房工作结束后，另行调配安置。</p>
                <!--合并备注-->
                <p style="text-indent: 0em;font-size: 14px">${adjustAreaMemo}</p>
                <#if adjustAreaMemo ?? && adjustAreaMemo !="">
                    <p style="text-indent: 0em;font-size: 14px">注：原需安置面积${bigUtils.getNotNullStr(contract.ysHouseAreaTotal)}，合并面积${bigUtils.getNotNull(contract.adjustAreaTotal)}，当前需安置面积${bigUtils.getSum(contract.ysHouseAreaTotal,contract.adjustAreaTotal)};</p>
                </#if>                <!--协议备注-->
                <#if contract.memo ?? && contract.memo !="">
                    <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.memo)}</p>
                </#if>
                <!--财务备注-->
                <#if contract.financeMemo ?? && contract.financeMemo !="">
                    <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.financeMemo)}。</p>
                </#if>
                <p style="font-size: 18px;  text-indent: 2em;margin-top: 20px">被征收人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;房源签认组：</p>
                <p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
                    &#160;&#160;年&#160;&#160;月&#160;&#160;日
                </p>
            </div>
    </#if>


    <!--商业部分-->
    <#if (contract.azType?? && contract.azType?contains("商业安置")) >
        <div style="page-break-after: always;"></div>
        <div class="printContent">
            <#if contract.chooseHouseStatus ?? && contract.chooseHouseStatus ==1><p class="printTitle">【房源签认组未设置签认状态，此单据仅供预览】</p></#if>            <div class="printTitle" style="margin-top: 20px">${strUtils.getNotNullText(contract.zsProject.printTableName)}选房签认表</div>
            <div class="printTitle">（商业用房）</div>
            <p style="text-align: right;">单位：元、平方米</p>
            <table class="table_border_bottom_hidden">
                <tr>
                    <td colspan="2" style="width: 25%">被征收人</td>
                    <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.name)}</td>
                    <td colspan="2">选房号</td>
                    <td colspan="2">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
                </tr>
                <tr>
                    <td colspan="2" style="width: 25%">身份证号码</td>
                    <td colspan="8" style="width: 25%">${strUtils.getNotNull(contract.idCard)}</td>
                </tr>
                <tr>
                    <td colspan="2">图编号</td>
                    <td colspan="2" style="word-wrap:break-word;">${strUtils.getNotNull(contract.drawingCode)}</td>
                    <td colspan="2" style="width: 25%">协议编号</td>
                    <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.contractCode)}</td>
                </tr>
            </table>
            <table class="table_border_top_hidden">
                <tr>
                    <td colspan="4">一、商业用房预定情况</td>
                </tr>
                <tr>
                    <td width="25%">房屋用途</td>
                    <td width="20%">间数</td>
                    <td width="30%">产权调换面积</td>
                    <td width="25%">路段</td>
                </tr>
                <tr>
                    <td width="25%">商业店面（住改商）</td>
                    <td width="20%">${contract.zgsHouseAzNum + contract.syDmAzNum}</td>
                    <td width="30%">${bigUtils.getSum(contract.zgsHouseAzArea,contract.syDmAzArea)}</td>
                    <td width="25%">${strUtils.getNotNull(contract.zqSzLd)}</td>
                </tr>

                <tr>
                    <td width="25%">二层商业（写字楼）</td>
                    <td width="20%">\</td>
                    <td width="30%">${bigUtils.getSum(contract.syTwoFloorAzArea,contract.syXzlAzArea)}</td>
                    <td width="25%">${strUtils.getNotNull(contract.zqSzLd)}</td>
                </tr>
                <tr>
                    <td width="25%">一层商场（经营场所）</td>
                    <td width="20%">\</td>
                    <td width="30%">${bigUtils.getNotNullStr(contract.syScAzArea)}</td>
                    <td width="25%">${strUtils.getNotNull(contract.zqSzLd)}</td>
                </tr>
            </table>

            <table class="table_border_top_hidden">
                <tr>
                    <td colspan="6">二、商业用房状况明细</td>
                </tr>
                <tr>
                    <td width="10%">序号</td>
                    <td width="15%">房屋用途</td>
                    <td width="15%">所在层次</td>
                    <td width="20%">安置路段</td>
                    <td width="20%">户号（编号）</td>
                    <td width="20%">建筑面积</td>
                </tr>
                <#assign index = 0/>
                <#assign zhAreaTotal = 0/>
                <#if shopHouseList??>
                    <#list shopHouseList as shopHouse>
                        <#assign index =index+ 1/>
                        <#assign zhAreaTotal = bigUtils.getSum(zhAreaTotal,shopHouse.buildArea)/>
                        <tr>
                            <td>${intUtils.getNotNullStr(index)}</td>
                            <td>${strUtils.getNotNull(shopHouse.houseYc)}</td>
                            <td>${strUtils.getNotNull(shopHouse.floorStr)}</td>
                            <td>${strUtils.getNotNull(shopHouse.yjName)}</td>
                            <td>${strUtils.getNotNull(shopHouse.buildNum)}幢-${strUtils.getNotNull(shopHouse.houseNum)}</td>
                            <td>${bigUtils.getNotNullStr(shopHouse.buildArea)}</td>
                        </tr>
                    </#list>
                    <tr>
                        <td style="width: 50%" colspan="5">合计</td>
                        <td style="width: 50%">${bigUtils.getNotNullStr(zhAreaTotal)}</td>
                    </tr>
                </#if>
            </table>
            <table class="table_border_top_hidden">
                <tr>
                    <td colspan="6">三、安置房状况明细</td>
                </tr>
                <tr>
                    <td width="8%">序号</td>
                    <td width="12%">房屋用途</td>
                    <td width="12%">房屋户型</td>
                    <td width="18%">所在小区</td>
                    <td width="25%">户号（编号）</td>
                    <td width="25%" style="font-size: 14px">建筑面积、置换车位面积</td>
                </tr>
                <#assign index = 0/>
                <#assign zhAreaTotal = 0/>
                <#if houseList??>
                    <#list houseList as house>
                        <#assign index =index+ 1/>
                        <#assign zhAreaTotal = bigUtils.getSum(zhAreaTotal,house.buildArea)/>
                        <tr>
                            <td>${intUtils.getNotNullStr(index)}</td>
                            <td>住宅</td>
                            <td>${strUtils.getNotNull(house.memo)}</td>
                            <td>${strUtils.getNotNull(house.azProject.projectName)}</td>
                            <td>${house.houseNumStr}</td>
                            <td>${bigUtils.getNotNullStr(house.buildArea)}</td>
                        </tr>
                    </#list>
                </#if>
                <#if carLotList??>
                    <#list carLotList as carLot>
                        <#assign index =index+ 1/>
                        <#assign zhAreaTotal = bigUtils.getSum(zhAreaTotal,carLot.hgArea)/>
                        <tr>
                            <td>${intUtils.getNotNullStr(index)}</td>
                            <td>车位</td>
                            <td>${(carLotTypeMap[carLot.carLotType?c].name)}</td>
                            <td>${strUtils.getNotNull(carLot.azProject.projectName)}</td>
                            <td>${carLot.houseNumStr}</td>
                            <#if carLotList?? && carLot.sfHg == 2>
                            <td>${bigUtils.getNotNullStr(carLot.hgArea)}</td>
                            <#else>
                            <td>${bigUtils.getNotNullStr(carLot.buildArea)}</td>
                            </#if>
                        </tr>
                    </#list>
                </#if>
                <tr>
                    <td style="width: 50%" colspan="4">安置面积合计（含置换车位面积）</td>
                    <td style="width: 50%" colspan="2">${bigUtils.getNotNullStr(zhAreaTotal)}</td>
                </tr>
            </table>
            <p style="text-indent: 0em;font-size: 14px">被征收人声明：以上所选安置房是本人真实意思表示，本人予以确认。在此，本人郑重承诺：按照以上所确定的安置房（商业）在选房当日与征收人签订安置协议书，并按期缴清应补差价款；否则，征收人有权对所选安置房（商业）进行处置并取消本人选房号，本人服从征收人在正常选房工作结束后，另行统一组织调配安置。</p>
            <!--合并备注-->
            <p style="text-indent: 0em;font-size: 14px">${adjustAreaMemo}</p>
            <#if adjustAreaMemo ?? && adjustAreaMemo !="">
                <p style="text-indent: 0em;font-size: 14px">注：原需安置面积${bigUtils.getNotNullStr(contract.ysHouseAreaTotal)}，合并面积${bigUtils.getNotNull(contract.adjustAreaTotal)}，当前需安置面积${bigUtils.getSum(contract.ysHouseAreaTotal,contract.adjustAreaTotal)};</p>
            </#if>            <!--协议备注-->
            <#if contract.memo ?? && contract.memo !="">
                <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.memo)}</p>
            </#if>
            <!--财务备注-->
            <#if contract.financeMemo ?? && contract.financeMemo !="">
                <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.financeMemo)}。</p>
            </#if>
            <p style="font-size: 18px;  text-indent: 2em;margin-top: 20px">被征收人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;房源签认组：</p>
            <p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
                &#160;&#160;年&#160;&#160;月&#160;&#160;日
            </p>
        </div>
    </#if>
</body>
</html>